// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import global from './components/golbal'

import ElementUI from 'element-ui'
import echarts from 'echarts'

import 'element-ui/lib/theme-chalk/index.css'
//引入util.js

import { showToast, toLogin, overTextScroll ,numberForamt } from '../static/js/util.js'
Vue.prototype.$showToast = showToast
Vue.prototype.$toLogin = toLogin
Vue.prototype.$overTextScroll = overTextScroll
Vue.prototype.$numberForamt = numberForamt
Vue.prototype.global = global


Vue.use(ElementUI)

Vue.prototype.$echarts = echarts


Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
